package com.easemob.util;

import android.util.Log;
import java.io.File;

public class EMLog
{
  public static boolean debugMode = false;
  private static ELogMode logMode = ELogMode.KLogConsoleFile;
  private static FileLogger fileLog = new FileLogger();

  public static void d(String paramString1, String paramString2)
  {
    if (debugMode)
      switch ($SWITCH_TABLE$com$easemob$util$EMLog$ELogMode()[logMode.ordinal()])
      {
      case 1:
        Log.d(paramString1, paramString2);
        break;
      case 2:
        fileLog.d(paramString1, paramString2);
        break;
      case 3:
        Log.d(paramString1, paramString2);
        fileLog.d(paramString1, paramString2);
        break;
      default:
        Log.d(paramString1, paramString2);
      }
  }

  public static void d(String paramString1, String paramString2, Throwable paramThrowable)
  {
    if (debugMode)
      Log.d(paramString1, paramString2, paramThrowable);
  }

  public static void e(String paramString1, String paramString2)
  {
    switch ($SWITCH_TABLE$com$easemob$util$EMLog$ELogMode()[logMode.ordinal()])
    {
    case 1:
      Log.e(paramString1, paramString2);
      break;
    case 2:
      fileLog.e(paramString1, paramString2);
      break;
    case 3:
      Log.d(paramString1, paramString2);
      fileLog.e(paramString1, paramString2);
      break;
    default:
      Log.e(paramString1, paramString2);
    }
  }

  public static void e(String paramString1, String paramString2, Throwable paramThrowable)
  {
    Log.e(paramString1, paramString2, paramThrowable);
  }

  public static void i(String paramString1, String paramString2)
  {
    if (debugMode)
      switch ($SWITCH_TABLE$com$easemob$util$EMLog$ELogMode()[logMode.ordinal()])
      {
      case 1:
        Log.i(paramString1, paramString2);
        break;
      case 2:
        fileLog.i(paramString1, paramString2);
        break;
      case 3:
        Log.i(paramString1, paramString2);
        fileLog.i(paramString1, paramString2);
        break;
      default:
        Log.i(paramString1, paramString2);
      }
  }

  public static void v(String paramString1, String paramString2)
  {
    if (debugMode)
      switch ($SWITCH_TABLE$com$easemob$util$EMLog$ELogMode()[logMode.ordinal()])
      {
      case 1:
        Log.v(paramString1, paramString2);
        break;
      case 2:
        fileLog.v(paramString1, paramString2);
        break;
      case 3:
        Log.v(paramString1, paramString2);
        fileLog.v(paramString1, paramString2);
        break;
      default:
        Log.v(paramString1, paramString2);
      }
  }

  public static void w(String paramString1, String paramString2)
  {
    switch ($SWITCH_TABLE$com$easemob$util$EMLog$ELogMode()[logMode.ordinal()])
    {
    case 1:
      Log.w(paramString1, paramString2);
      break;
    case 2:
      fileLog.w(paramString1, paramString2);
      break;
    case 3:
      Log.w(paramString1, paramString2);
      fileLog.w(paramString1, paramString2);
      break;
    default:
      Log.w(paramString1, paramString2);
    }
  }

  public static void w(String paramString1, String paramString2, Throwable paramThrowable)
  {
    if (debugMode)
      Log.w(paramString1, paramString2, paramThrowable);
  }

  public static void setLogMode(ELogMode paramELogMode)
  {
    logMode = paramELogMode;
  }

  public static File getLogRoot()
  {
    return fileLog.getLogRoot();
  }

  public static void freeLogFiles()
  {
    fileLog.checkAndFreeLogFiles();
  }

  public static enum ELogMode
  {
    KLogConsoleOnly, KLogFileOnly, KLogConsoleFile;
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.util.EMLog
 * JD-Core Version:    0.6.1
 */